package com.pzhu.user.domain.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.pzhu.base.common.utils.mybatisflex.LogicDeleteEntity;
import com.pzhu.user.domain.enums.PermissionStatus;
import lombok.*;
import com.pzhu.base.common.utils.mybatisflex.BaseEntity;

import java.io.Serial;
import java.io.Serializable;

/**
 * 权限表
 *
 * @TableName permission
 */
@EqualsAndHashCode(callSuper = true)
@Table(value = "permission")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Permission extends LogicDeleteEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 权限码
     */
    private String code;
    /**
     * 权限描述
     */
    private String permissionDesc;

    /**
     * 权限状态
     */
    private PermissionStatus status;
}